<!DOCTYPE html>
<html>
<style>
    .control-label{
        padding: 6px 0px;
    }
    .group-block{
        margin-top: 15px !important;
    }
</style>
<head>
    <title>用户管理</title>
		<#include "/header.html">
</head>


<body>


<div id="rrapp" v-cloak >

    <div class="grid-btn">
        <#if shiro.hasPermission("business:company:list")>
        <a class="btn btn-primary" @click="companyQuery">企业用户</a>
        </#if>
        <#if shiro.hasPermission("business:user:list")>
        <a class="btn btn-primary" @click="userQuery">个人用户</a>
        </#if>
    </div>


    <div v-show="showList">
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>
    <div id="companyInfo" style="display: none;text-align: center">

        <form class="form-inline">

            <div class="col-sm-12 form-group group-block">
                <label  class="col-sm-6 control-label">账号:</label>
                <div class="col-sm-6">
                    {{tCompany.userName}}
                </div>
            </div>

            <div class="col-sm-12 form-group group-block">
                <label  class="col-sm-6 control-label">企业全称:</label>
                <div class="col-sm-6">
                    {{tCompany.companyName}}
                </div>
            </div>

            <div class="col-sm-12 form-group group-block">
                <label  class="col-sm-6 control-label">营业执照号:</label>
                <div class="col-sm-6">
                    {{tCompany.businessLicenseNo}}
                </div>
            </div>


            <div class="col-sm-12 form-group group-block">
                <label  class="col-sm-6 control-label">企业地址:</label>
                <div class="col-sm-6">
                    {{tCompany.companyAddress}}
                </div>
            </div>


            <div class="col-sm-12 form-group group-block">
                <label  class="col-sm-6 control-label">企业联系人:</label>
                <div class="col-sm-6">
                    {{tCompany.legalPerson}}
                </div>
            </div>

            <div class="col-sm-12 form-group group-block">
                <label  class="col-sm-6 control-label">联系人手机号:</label>
                <div class="col-sm-6">
                    {{tCompany.mobile}}
                </div>
            </div>
            </form>

    </div>


    <div v-show="!showList">
        <table id="jqGridUser"></table>
        <div id="jqGridPagerUser"></div>
    </div>
</div>



<script src="${request.contextPath}/statics/js/modules/business/user.js?_${.now?long}"></script>
</body>
</html>